\doxysection{stm32h7xx\+\_\+hal\+\_\+gpio.\+h}
\hypertarget{stm32h7xx__hal__gpio_8h_source}{}\label{stm32h7xx__hal__gpio_8h_source}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Drivers/STM32H7xx\_HAL\_Driver/Inc/stm32h7xx\_hal\_gpio.h@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Drivers/STM32H7xx\_HAL\_Driver/Inc/stm32h7xx\_hal\_gpio.h}}
\mbox{\hyperlink{stm32h7xx__hal__gpio_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00018\ }
\DoxyCodeLine{00019\ \textcolor{comment}{/*\ Define\ to\ prevent\ recursive\ inclusion\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00020\ \textcolor{preprocessor}{\#ifndef\ STM32H7xx\_HAL\_GPIO\_H}}
\DoxyCodeLine{00021\ \textcolor{preprocessor}{\#define\ STM32H7xx\_HAL\_GPIO\_H}}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00023\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00024\ \textcolor{keyword}{extern}\ \textcolor{stringliteral}{"{}C"{}}\ \{}
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \textcolor{comment}{/*\ Includes\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{stm32h7xx__hal__def_8h}{stm32h7xx\_hal\_def.h}}"{}}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00038\ \textcolor{comment}{/*\ Exported\ types\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00046\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00047\ \{}
\DoxyCodeLine{00048\ \ \ uint32\_t\ \mbox{\hyperlink{struct_g_p_i_o___init_type_def_aa807fb62b2b2cf937092abba81370b87}{Pin}};\ \ \ \ \ \ \ }
\DoxyCodeLine{00050\ }
\DoxyCodeLine{00051\ \ \ uint32\_t\ \mbox{\hyperlink{struct_g_p_i_o___init_type_def_a3731d84343e65a98fdf51056a8d30321}{Mode}};\ \ \ \ \ \ }
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00054\ \ \ uint32\_t\ \mbox{\hyperlink{struct_g_p_i_o___init_type_def_aa2d3a6b0c4e10ac20882b4a37799ced1}{Pull}};\ \ \ \ \ \ }
\DoxyCodeLine{00056\ }
\DoxyCodeLine{00057\ \ \ uint32\_t\ \mbox{\hyperlink{struct_g_p_i_o___init_type_def_aae3b8ba407fb4f974cbce9cc03fc189d}{Speed}};\ \ \ \ \ }
\DoxyCodeLine{00059\ }
\DoxyCodeLine{00060\ \ \ uint32\_t\ \mbox{\hyperlink{struct_g_p_i_o___init_type_def_aa1bf7132c974a10589d6574d50465256}{Alternate}};\ \ }
\DoxyCodeLine{00062\ \}\ \mbox{\hyperlink{struct_g_p_i_o___init_type_def}{GPIO\_InitTypeDef}};}
\DoxyCodeLine{00063\ }
\DoxyCodeLine{00067\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
\DoxyCodeLine{00068\ \{}
\DoxyCodeLine{00069\ \ \ GPIO\_PIN\_RESET\ =\ 0U,}
\DoxyCodeLine{00070\ \ \ GPIO\_PIN\_SET}
\DoxyCodeLine{00071\ \}\ \mbox{\hyperlink{group___g_p_i_o___exported___types_ga5b3ef0486b179415581eb342e0ea6b43}{GPIO\_PinState}};}
\DoxyCodeLine{00075\ }
\DoxyCodeLine{00076\ \textcolor{comment}{/*\ Exported\ constants\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00081\ }
\DoxyCodeLine{00085\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_0\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x0001)\ \ }\textcolor{comment}{/*\ Pin\ 0\ selected\ \ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00086\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_1\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x0002)\ \ }\textcolor{comment}{/*\ Pin\ 1\ selected\ \ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00087\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_2\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x0004)\ \ }\textcolor{comment}{/*\ Pin\ 2\ selected\ \ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00088\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_3\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x0008)\ \ }\textcolor{comment}{/*\ Pin\ 3\ selected\ \ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00089\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_4\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x0010)\ \ }\textcolor{comment}{/*\ Pin\ 4\ selected\ \ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00090\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_5\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x0020)\ \ }\textcolor{comment}{/*\ Pin\ 5\ selected\ \ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00091\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_6\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x0040)\ \ }\textcolor{comment}{/*\ Pin\ 6\ selected\ \ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00092\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_7\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x0080)\ \ }\textcolor{comment}{/*\ Pin\ 7\ selected\ \ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00093\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_8\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x0100)\ \ }\textcolor{comment}{/*\ Pin\ 8\ selected\ \ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00094\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_9\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x0200)\ \ }\textcolor{comment}{/*\ Pin\ 9\ selected\ \ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00095\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_10\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x0400)\ \ }\textcolor{comment}{/*\ Pin\ 10\ selected\ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00096\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_11\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x0800)\ \ }\textcolor{comment}{/*\ Pin\ 11\ selected\ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00097\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_12\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x1000)\ \ }\textcolor{comment}{/*\ Pin\ 12\ selected\ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00098\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_13\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x2000)\ \ }\textcolor{comment}{/*\ Pin\ 13\ selected\ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00099\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_14\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x4000)\ \ }\textcolor{comment}{/*\ Pin\ 14\ selected\ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00100\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_15\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0x8000)\ \ }\textcolor{comment}{/*\ Pin\ 15\ selected\ \ \ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00101\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_All\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((uint16\_t)0xFFFF)\ \ }\textcolor{comment}{/*\ All\ pins\ selected\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00102\ }
\DoxyCodeLine{00103\ \textcolor{preprocessor}{\#define\ GPIO\_PIN\_MASK\ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x0000FFFFU)\ }\textcolor{comment}{/*\ PIN\ mask\ for\ assert\ test\ */}\textcolor{preprocessor}{}\textcolor{preprocessor}{}}
\DoxyCodeLine{00107\ }
\DoxyCodeLine{00117\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_INPUT\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ MODE\_INPUT\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00118\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_OUTPUT\_PP\ \ \ \ \ \ \ \ \ \ \ \ \ (MODE\_OUTPUT\ |\ OUTPUT\_PP)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00119\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_OUTPUT\_OD\ \ \ \ \ \ \ \ \ \ \ \ \ (MODE\_OUTPUT\ |\ OUTPUT\_OD)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00120\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_AF\_PP\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (MODE\_AF\ |\ OUTPUT\_PP)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00121\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_AF\_OD\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (MODE\_AF\ |\ OUTPUT\_OD)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00122\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_ANALOG\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ MODE\_ANALOG\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00123\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_IT\_RISING\ \ \ \ \ \ \ \ \ \ \ \ \ (MODE\_INPUT\ |\ EXTI\_IT\ |\ TRIGGER\_RISING)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00124\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_IT\_FALLING\ \ \ \ \ \ \ \ \ \ \ \ (MODE\_INPUT\ |\ EXTI\_IT\ |\ TRIGGER\_FALLING)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00125\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_IT\_RISING\_FALLING\ \ \ \ \ (MODE\_INPUT\ |\ EXTI\_IT\ |\ TRIGGER\_RISING\ |\ TRIGGER\_FALLING)\ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00126\ }
\DoxyCodeLine{00127\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_EVT\_RISING\ \ \ \ \ \ \ \ \ \ \ \ (MODE\_INPUT\ |\ EXTI\_EVT\ |\ TRIGGER\_RISING)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00128\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_EVT\_FALLING\ \ \ \ \ \ \ \ \ \ \ (MODE\_INPUT\ |\ EXTI\_EVT\ |\ TRIGGER\_FALLING)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00129\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_EVT\_RISING\_FALLING\ \ \ \ (MODE\_INPUT\ |\ EXTI\_EVT\ |\ TRIGGER\_RISING\ |\ TRIGGER\_FALLING)\ \ }\textcolor{preprocessor}{}\textcolor{preprocessor}{}}
\DoxyCodeLine{00133\ }
\DoxyCodeLine{00138\ \textcolor{preprocessor}{\#define\ \ GPIO\_SPEED\_FREQ\_LOW\ \ \ \ \ \ \ \ \ (0x00000000U)\ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00139\ \textcolor{preprocessor}{\#define\ \ GPIO\_SPEED\_FREQ\_MEDIUM\ \ \ \ \ \ (0x00000001U)\ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00140\ \textcolor{preprocessor}{\#define\ \ GPIO\_SPEED\_FREQ\_HIGH\ \ \ \ \ \ \ \ (0x00000002U)\ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00141\ \textcolor{preprocessor}{\#define\ \ GPIO\_SPEED\_FREQ\_VERY\_HIGH\ \ \ (0x00000003U)\ \ }\textcolor{preprocessor}{}\textcolor{preprocessor}{}}
\DoxyCodeLine{00145\ }
\DoxyCodeLine{00150\ \textcolor{preprocessor}{\#define\ \ GPIO\_NOPULL\ \ \ \ \ \ \ \ (0x00000000U)\ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00151\ \textcolor{preprocessor}{\#define\ \ GPIO\_PULLUP\ \ \ \ \ \ \ \ (0x00000001U)\ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00152\ \textcolor{preprocessor}{\#define\ \ GPIO\_PULLDOWN\ \ \ \ \ \ (0x00000002U)\ \ \ }\textcolor{preprocessor}{}\textcolor{preprocessor}{}}
\DoxyCodeLine{00156\ }
\DoxyCodeLine{00160\ }
\DoxyCodeLine{00161\ \textcolor{comment}{/*\ Exported\ macro\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00165\ }
\DoxyCodeLine{00172\ \textcolor{preprocessor}{\#define\ \_\_HAL\_GPIO\_EXTI\_GET\_FLAG(\_\_EXTI\_LINE\_\_)\ (EXTI-\/>PR1\ \&\ (\_\_EXTI\_LINE\_\_))}}
\DoxyCodeLine{00173\ }
\DoxyCodeLine{00180\ \textcolor{preprocessor}{\#define\ \_\_HAL\_GPIO\_EXTI\_CLEAR\_FLAG(\_\_EXTI\_LINE\_\_)\ (EXTI-\/>PR1\ =\ (\_\_EXTI\_LINE\_\_))}}
\DoxyCodeLine{00181\ }
\DoxyCodeLine{00188\ \textcolor{preprocessor}{\#define\ \_\_HAL\_GPIO\_EXTI\_GET\_IT(\_\_EXTI\_LINE\_\_)\ (EXTI-\/>PR1\ \&\ (\_\_EXTI\_LINE\_\_))}}
\DoxyCodeLine{00189\ }
\DoxyCodeLine{00196\ \textcolor{preprocessor}{\#define\ \_\_HAL\_GPIO\_EXTI\_CLEAR\_IT(\_\_EXTI\_LINE\_\_)\ (EXTI-\/>PR1\ =\ (\_\_EXTI\_LINE\_\_))}}
\DoxyCodeLine{00197\ }
\DoxyCodeLine{00198\ \textcolor{preprocessor}{\#if\ defined(DUAL\_CORE)}\textcolor{preprocessor}{}}
\DoxyCodeLine{00205\ \textcolor{preprocessor}{\#define\ \_\_HAL\_GPIO\_EXTID2\_GET\_FLAG(\_\_EXTI\_LINE\_\_)\ (EXTI-\/>C2PR1\ \&\ (\_\_EXTI\_LINE\_\_))}}
\DoxyCodeLine{00206\ }
\DoxyCodeLine{00213\ \textcolor{preprocessor}{\#define\ \_\_HAL\_GPIO\_EXTID2\_CLEAR\_FLAG(\_\_EXTI\_LINE\_\_)\ (EXTI-\/>C2PR1\ =\ (\_\_EXTI\_LINE\_\_))}}
\DoxyCodeLine{00214\ }
\DoxyCodeLine{00221\ \textcolor{preprocessor}{\#define\ \_\_HAL\_GPIO\_EXTID2\_GET\_IT(\_\_EXTI\_LINE\_\_)\ (EXTI-\/>C2PR1\ \&\ (\_\_EXTI\_LINE\_\_))}}
\DoxyCodeLine{00222\ }
\DoxyCodeLine{00229\ \textcolor{preprocessor}{\#define\ \_\_HAL\_GPIO\_EXTID2\_CLEAR\_IT(\_\_EXTI\_LINE\_\_)\ (EXTI-\/>C2PR1\ =\ (\_\_EXTI\_LINE\_\_))}}
\DoxyCodeLine{00230\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00231\ }
\DoxyCodeLine{00238\ \textcolor{preprocessor}{\#define\ \_\_HAL\_GPIO\_EXTI\_GENERATE\_SWIT(\_\_EXTI\_LINE\_\_)\ (EXTI-\/>SWIER1\ |=\ (\_\_EXTI\_LINE\_\_))}\textcolor{preprocessor}{}}
\DoxyCodeLine{00242\ }
\DoxyCodeLine{00243\ \textcolor{comment}{/*\ Include\ GPIO\ HAL\ Extension\ module\ */}}
\DoxyCodeLine{00244\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{stm32h7xx__hal__gpio__ex_8h}{stm32h7xx\_hal\_gpio\_ex.h}}"{}}}
\DoxyCodeLine{00245\ }
\DoxyCodeLine{00246\ \textcolor{comment}{/*\ Exported\ functions\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00250\ }
\DoxyCodeLine{00254\ \textcolor{comment}{/*\ Initialization\ and\ de-\/initialization\ functions\ *****************************/}}
\DoxyCodeLine{00255\ \textcolor{keywordtype}{void}\ \ HAL\_GPIO\_Init(\mbox{\hyperlink{struct_g_p_i_o___type_def}{GPIO\_TypeDef}}\ \ *GPIOx,\ \textcolor{keyword}{const}\ \mbox{\hyperlink{struct_g_p_i_o___init_type_def}{GPIO\_InitTypeDef}}\ *GPIO\_Init);}
\DoxyCodeLine{00256\ \textcolor{keywordtype}{void}\ \ HAL\_GPIO\_DeInit(\mbox{\hyperlink{struct_g_p_i_o___type_def}{GPIO\_TypeDef}}\ \ *GPIOx,\ uint32\_t\ GPIO\_Pin);}
\DoxyCodeLine{00260\ }
\DoxyCodeLine{00264\ \textcolor{comment}{/*\ IO\ operation\ functions\ *****************************************************/}}
\DoxyCodeLine{00265\ \mbox{\hyperlink{group___g_p_i_o___exported___types_ga5b3ef0486b179415581eb342e0ea6b43}{GPIO\_PinState}}\ HAL\_GPIO\_ReadPin(\textcolor{keyword}{const}\ \mbox{\hyperlink{struct_g_p_i_o___type_def}{GPIO\_TypeDef}}\ *GPIOx,\ uint16\_t\ GPIO\_Pin);}
\DoxyCodeLine{00266\ \textcolor{keywordtype}{void}\ HAL\_GPIO\_WritePin(\mbox{\hyperlink{struct_g_p_i_o___type_def}{GPIO\_TypeDef}}\ *GPIOx,\ uint16\_t\ GPIO\_Pin,\ \mbox{\hyperlink{group___g_p_i_o___exported___types_ga5b3ef0486b179415581eb342e0ea6b43}{GPIO\_PinState}}\ PinState);}
\DoxyCodeLine{00267\ \textcolor{keywordtype}{void}\ HAL\_GPIO\_TogglePin(\mbox{\hyperlink{struct_g_p_i_o___type_def}{GPIO\_TypeDef}}\ *GPIOx,\ uint16\_t\ GPIO\_Pin);}
\DoxyCodeLine{00268\ \mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\_StatusTypeDef}}\ HAL\_GPIO\_LockPin(\mbox{\hyperlink{struct_g_p_i_o___type_def}{GPIO\_TypeDef}}\ *GPIOx,\ uint16\_t\ GPIO\_Pin);}
\DoxyCodeLine{00269\ \textcolor{keywordtype}{void}\ HAL\_GPIO\_EXTI\_IRQHandler(uint16\_t\ GPIO\_Pin);}
\DoxyCodeLine{00270\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___g_p_i_o___exported___functions___group2_ga0cd91fd3a9608559c2a87a8ba6cba55f}{HAL\_GPIO\_EXTI\_Callback}}(uint16\_t\ GPIO\_Pin);}
\DoxyCodeLine{00271\ }
\DoxyCodeLine{00275\ }
\DoxyCodeLine{00279\ \textcolor{comment}{/*\ Private\ types\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00280\ \textcolor{comment}{/*\ Private\ variables\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00281\ \textcolor{comment}{/*\ Private\ constants\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00285\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\_Pos\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 0u}}
\DoxyCodeLine{00286\ \textcolor{preprocessor}{\#define\ GPIO\_MODE\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x3uL\ <<\ GPIO\_MODE\_Pos)}}
\DoxyCodeLine{00287\ \textcolor{preprocessor}{\#define\ MODE\_INPUT\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x0uL\ <<\ GPIO\_MODE\_Pos)}}
\DoxyCodeLine{00288\ \textcolor{preprocessor}{\#define\ MODE\_OUTPUT\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x1uL\ <<\ GPIO\_MODE\_Pos)}}
\DoxyCodeLine{00289\ \textcolor{preprocessor}{\#define\ MODE\_AF\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x2uL\ <<\ GPIO\_MODE\_Pos)}}
\DoxyCodeLine{00290\ \textcolor{preprocessor}{\#define\ MODE\_ANALOG\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x3uL\ <<\ GPIO\_MODE\_Pos)}}
\DoxyCodeLine{00291\ \textcolor{preprocessor}{\#define\ OUTPUT\_TYPE\_Pos\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 4u}}
\DoxyCodeLine{00292\ \textcolor{preprocessor}{\#define\ OUTPUT\_TYPE\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x1uL\ <<\ OUTPUT\_TYPE\_Pos)}}
\DoxyCodeLine{00293\ \textcolor{preprocessor}{\#define\ OUTPUT\_PP\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x0uL\ <<\ OUTPUT\_TYPE\_Pos)}}
\DoxyCodeLine{00294\ \textcolor{preprocessor}{\#define\ OUTPUT\_OD\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x1uL\ <<\ OUTPUT\_TYPE\_Pos)}}
\DoxyCodeLine{00295\ \textcolor{preprocessor}{\#define\ EXTI\_MODE\_Pos\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 16u}}
\DoxyCodeLine{00296\ \textcolor{preprocessor}{\#define\ EXTI\_MODE\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x3uL\ <<\ EXTI\_MODE\_Pos)}}
\DoxyCodeLine{00297\ \textcolor{preprocessor}{\#define\ EXTI\_IT\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x1uL\ <<\ EXTI\_MODE\_Pos)}}
\DoxyCodeLine{00298\ \textcolor{preprocessor}{\#define\ EXTI\_EVT\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x2uL\ <<\ EXTI\_MODE\_Pos)}}
\DoxyCodeLine{00299\ \textcolor{preprocessor}{\#define\ TRIGGER\_MODE\_Pos\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 20u}}
\DoxyCodeLine{00300\ \textcolor{preprocessor}{\#define\ TRIGGER\_MODE\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x7uL\ <<\ TRIGGER\_MODE\_Pos)}}
\DoxyCodeLine{00301\ \textcolor{preprocessor}{\#define\ TRIGGER\_RISING\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x1uL\ <<\ TRIGGER\_MODE\_Pos)}}
\DoxyCodeLine{00302\ \textcolor{preprocessor}{\#define\ TRIGGER\_FALLING\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x2uL\ <<\ TRIGGER\_MODE\_Pos)}}
\DoxyCodeLine{00303\ \textcolor{preprocessor}{\#define\ TRIGGER\_LEVEL\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0x4uL\ <<\ TRIGGER\_MODE\_Pos)}\textcolor{preprocessor}{}}
\DoxyCodeLine{00307\ }
\DoxyCodeLine{00308\ \textcolor{comment}{/*\ Private\ macros\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00312\ \textcolor{preprocessor}{\#define\ IS\_GPIO\_PIN\_ACTION(ACTION)\ (((ACTION)\ ==\ GPIO\_PIN\_RESET)\ ||\ ((ACTION)\ ==\ GPIO\_PIN\_SET))}}
\DoxyCodeLine{00313\ \textcolor{preprocessor}{\#define\ IS\_GPIO\_PIN(\_\_PIN\_\_)\ \ \ \ \ \ \ \ ((((uint32\_t)(\_\_PIN\_\_)\ \&\ GPIO\_PIN\_MASK)\ !=\ 0x00U)\ \&\&\(\backslash\)}}
\DoxyCodeLine{00314\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (((uint32\_t)(\_\_PIN\_\_)\ \&\ \string~GPIO\_PIN\_MASK)\ ==\ 0x00U))}}
\DoxyCodeLine{00315\ \textcolor{preprocessor}{\#define\ IS\_GPIO\_MODE(MODE)\ (((MODE)\ ==\ GPIO\_MODE\_INPUT)\ \ \ \ \ \ \ \ \ \ \ \ \ \ ||\(\backslash\)}}
\DoxyCodeLine{00316\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((MODE)\ ==\ GPIO\_MODE\_OUTPUT\_PP)\ \ \ \ \ \ \ \ \ \ ||\(\backslash\)}}
\DoxyCodeLine{00317\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((MODE)\ ==\ GPIO\_MODE\_OUTPUT\_OD)\ \ \ \ \ \ \ \ \ \ ||\(\backslash\)}}
\DoxyCodeLine{00318\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((MODE)\ ==\ GPIO\_MODE\_AF\_PP)\ \ \ \ \ \ \ \ \ \ \ \ \ \ ||\(\backslash\)}}
\DoxyCodeLine{00319\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((MODE)\ ==\ GPIO\_MODE\_AF\_OD)\ \ \ \ \ \ \ \ \ \ \ \ \ \ ||\(\backslash\)}}
\DoxyCodeLine{00320\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((MODE)\ ==\ GPIO\_MODE\_IT\_RISING)\ \ \ \ \ \ \ \ \ \ ||\(\backslash\)}}
\DoxyCodeLine{00321\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((MODE)\ ==\ GPIO\_MODE\_IT\_FALLING)\ \ \ \ \ \ \ \ \ ||\(\backslash\)}}
\DoxyCodeLine{00322\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((MODE)\ ==\ GPIO\_MODE\_IT\_RISING\_FALLING)\ \ ||\(\backslash\)}}
\DoxyCodeLine{00323\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((MODE)\ ==\ GPIO\_MODE\_EVT\_RISING)\ \ \ \ \ \ \ \ \ ||\(\backslash\)}}
\DoxyCodeLine{00324\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((MODE)\ ==\ GPIO\_MODE\_EVT\_FALLING)\ \ \ \ \ \ \ \ ||\(\backslash\)}}
\DoxyCodeLine{00325\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((MODE)\ ==\ GPIO\_MODE\_EVT\_RISING\_FALLING)\ ||\(\backslash\)}}
\DoxyCodeLine{00326\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((MODE)\ ==\ GPIO\_MODE\_ANALOG))}}
\DoxyCodeLine{00327\ \textcolor{preprocessor}{\#define\ IS\_GPIO\_SPEED(SPEED)\ (((SPEED)\ ==\ GPIO\_SPEED\_FREQ\_LOW)\ \ ||\ ((SPEED)\ ==\ GPIO\_SPEED\_FREQ\_MEDIUM)\ ||\ \(\backslash\)}}
\DoxyCodeLine{00328\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((SPEED)\ ==\ GPIO\_SPEED\_FREQ\_HIGH)\ ||\ ((SPEED)\ ==\ GPIO\_SPEED\_FREQ\_VERY\_HIGH))}}
\DoxyCodeLine{00329\ }
\DoxyCodeLine{00330\ \textcolor{preprocessor}{\#define\ IS\_GPIO\_PULL(PULL)\ (((PULL)\ ==\ GPIO\_NOPULL)\ ||\ ((PULL)\ ==\ GPIO\_PULLUP)\ ||\ \(\backslash\)}}
\DoxyCodeLine{00331\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((PULL)\ ==\ GPIO\_PULLDOWN))}}
\DoxyCodeLine{00332\ }
\DoxyCodeLine{00336\ }
\DoxyCodeLine{00337\ \textcolor{comment}{/*\ Private\ functions\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00341\ }
\DoxyCodeLine{00345\ }
\DoxyCodeLine{00349\ }
\DoxyCodeLine{00353\ }
\DoxyCodeLine{00354\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00355\ \}}
\DoxyCodeLine{00356\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00357\ }
\DoxyCodeLine{00358\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ STM32H7xx\_HAL\_GPIO\_H\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00359\ }

\end{DoxyCode}
